package com.heima.api.admin;

import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

@Api(value = "频道管理", tags = "channel", description = "频道管理API")
public interface ChannelControllerApi {
    @ApiOperation("根据姓名分页查询")
    ResponseResult findByPageAndName(ChannelDto dto);
    @ApiOperation("添加频道")
   ResponseResult insert(AdChannel channel);
    @ApiOperation("根据ID更新频道")
    ResponseResult update(AdChannel adChannel);
    @ApiOperation("根据ID删除频道")
    ResponseResult deleteById(@ApiParam("用户id") Integer id);
    @ApiOperation("查询所有频道")
    ResponseResult findAll();
}
